home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_10
/
2n10080a
< prev
next >
Wrap
Text File
|
1991-07-15
|
416b
|
19 lines
/*
* MyYield(): process any pending
* messages to the application,
* and return when none in the queue
*/
void MyYield()
{
MSG msg;
while ( PeekMessage( &msg, NULL,
NULL, NULL, PM_REMOVE ) ) {
if ( TranslateAccelerator(
hMainWnd, hAccTable, &msg) )
continue;
TranslateMessage( &msg );
DispatchMessage( &msg );
}
}